/**
 * Copyright(c) 2010 Ceno Techonologies Co., Ltd.
 *
 * History:
 *   15-6-5 下午3:53 Created by lyyang
 */
package com.jade.bss.business.coupon;

import java.util.List;

import com.jade.framework.base.criterion.Criteria;
import com.jade.framework.base.util.PagingList;

/**
 * 卡券管理器
 *
 * @author <a href="mailto:lyyang@ceno.cn">lyyang</a>
 * @version 1.0 15-6-5 下午3:53
 */
public interface CouponManager
{

    CouponInfo add(CouponInfo base);

    CouponInfo get(long id);

    void update(CouponInfo base);

    void remove(CouponInfo base);

    void remove(long[] ids);

    PagingList<CouponInfo> query(Criteria criteria);

    List<CouponInfo> list(Criteria criteria);

    CouponInfo get(String cardId);

    CouponInfo getByFid(String fid);

    void increaseQuantity(String cardId, long quantity)
            throws Exception;
}
